﻿@{
    ViewBag.Title = "修改密码";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model JStore.Web.Controllers.Users.ViewModels.ChangePasswordModel
<link href="../../Scripts/jquery-validation-engine/css/template.css" rel="stylesheet"
    type="text/css" />
<link href="../../Scripts/jquery-validation-engine/css/validationEngine.jquery.css"
    rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/jquery.validationEngine.js"
    type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/languages/jquery.validationEngine-zh_CN.js"
    type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#form1").validationEngine();
    })
</script>
<div class="right_box_card">
    <ul>
        <li class="right_box_card1"><a href="#">修改密码</a></li>
    </ul>
</div>
@using (Html.BeginForm("ChangePassword", "Users", FormMethod.Post, new { @class = "formular", id = "form1" }))
{
    <fieldset>
        <label>
            <span>@Html.LabelFor(c => c.OldPassword)</span>
            @Html.PasswordFor(c => c.OldPassword, new { @class = "validate[required] text-input" })
        </label>
        <label>
            <span>@Html.LabelFor(c => c.NewPassword)</span>
            @Html.PasswordFor(c => c.NewPassword, new { @class = "validate[required] text-input" })
        </label>
        <label>
            <span>@Html.LabelFor(c => c.ConfirmPassword)</span>
            @Html.PasswordFor(c => c.ConfirmPassword, new { @class = "validate[required,equals[NewPassword]] text-input" })
        </label>
        <input type="submit" value="修改密码" class="submit" />
    </fieldset> 
}
